<?php
/*************************
/$a : $action
/$p : $page
/$s : $site
**************************/

$starttime = microtime();

$dirname = dirname(__FILE__);
require_once($dirname.'/lib/config.php');

@ob_start();

require_once($dirname.DIRECTORY_SEPARATOR."lib".DIRECTORY_SEPARATOR."classes".DIRECTORY_SEPARATOR."SiteCore.class.php");
$s =& new SiteObject();
$params = array_merge($_GET, $_POST);

$a = isset($params['a'])? strtolower(trim($_GET['a'])):'display';
if($a == 'display'){
    $p = $s->initPage();
}elseif($a == "action"){
    $p = $s->perform();
}
$p->print();
@ob_flush();












?>